#/bin/sh
version=`date +%Y%m%d%H%M`
imageUrl=harbor.pre.platform.dyys.com/imc-application/colmet-frame-archetype:$version
tmpImage=colmet-frame-archetype-tmp

mvn clean package -DskipTests
docker build --no-cache=true -t $tmpImage .
docker tag $tmpImage $imageUrl

docker login harbor.pre.platform.dyys.com -u admin -p Abcd1234.
docker push $imageUrl
echo $imageUrl

